package com.feituan.core.persistence.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.feituan.core.pojo.entity.User;
import com.feituan.core.pojo.request.UserReq;
import com.feituan.core.pojo.response.UserRes;
import com.feituan.core.pojo.response.page.PageData;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaohu
 * @since 2024-05-09
 */
public interface IUserService extends IService<User> {
    PageData<UserRes> queryPage(UserReq pageReq);


    User selectById(Long userId);

    /**
     * 修改积分
     * @param user user
     * @return
     */
    int updateIntegration(User user);

    /**
     * 根据用户ID查询集星数量
     * @param userId
     * @return
     */
    int selectStarsByUserId(Long userId);

    /**
     * 修改用户领取新用户礼包状态
     * @param userId userId
     */
    boolean judgeNewUser(Long userId, String type);
}
